package com.rules.admin.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rules.admin.dao.UnitCaseMockDao;
import com.rules.admin.entity.UnitCaseMock;
import com.rules.admin.service.UnitCaseMockService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UnitCaseMockServiceImpl extends ServiceImpl<UnitCaseMockDao, UnitCaseMock> implements UnitCaseMockService {


   public List<UnitCaseMock> getAllMocksByCaseId(Long unitCaseId) {
      LambdaQueryWrapper<UnitCaseMock> queryWrapper = new LambdaQueryWrapper<>();
      queryWrapper.eq(UnitCaseMock::getUnitCaseId,unitCaseId);

      return this.baseMapper.selectList(queryWrapper);
   }
}
